package com.usian.feign;

import com.usian.pojo.Result;
import com.usian.pojo.Student;
import com.usian.pojo.Teacher;
import com.usian.pojo.TeacherS;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@FeignClient("spring-student")   //http://127.0.0.1:8383/
public interface StudentFeign {

    @RequestMapping("/student/addAll")
    public Result addAll(@RequestBody Student student);

    @RequestMapping("/student/update/{id}")
    public Result update(@PathVariable Integer id);


    @GetMapping("/student/select/{id}")
    public List<Student> select(@PathVariable Integer id);

}
